package com.mice.microserviceconsumer.restApi;

import com.mice.microserviceconsumer.FeignConfiguration;
import com.mice.microserviceconsumer.bean.User;
import feign.Param;
import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;

/**
 * Created by AmbitiousMice on 2018/9/14.
 */
@FeignClient(name= "microservice-provider-user",configuration = FeignConfiguration.class)
public interface UserFeignClient {

    @RequestLine("GET /user/{id}")
    public User findById(@Param("id") Integer id);
}
